package org.spring.springboot.controller;

import org.spring.springboot.dubbo.CityDubboService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;

@RestController
public class IndexController {
	@Reference(version = "1.0.0")
	CityDubboService cityDubboService;

	@RequestMapping("/")
	public String index() {
		return cityDubboService.findCityByName("北京").toString();
	}
}
